Leadtools.Dicom.AddIn Namespace > ThreadSafeList<T> Class : CopyTo Method |
public void CopyTo( T[] array, int arrayIndex )
'Declaration Public Sub CopyTo( _ ByVal array() As T, _ ByVal arrayIndex As Integer _ )
'Usage Dim instance As ThreadSafeList(Of T) Dim array() As T Dim arrayIndex As Integer instance.CopyTo(array, arrayIndex)
public: void CopyTo( array<T^>^ array, int arrayIndex )
Exception | Description |
---|---|
System.ArgumentNullException | array is null. |
System.ArgumentOutOfRangeException | arrayIndex is less than 0. |
System.ArgumentException | array is multidimensional. -or- arrayIndex is equal to or greater than the length of array. -or- The number of elements in the source ICollection is greater than the available space from arrayIndex to the end of the destination array. -or- Type T cannot be cast automatically to the type of the destination array. |